Set Variable VC10_X86 to TRUE
Comment: Check for the MFC 10.0 DLL file in the system directory
Get Common Folder Location System->System Directory into WINSYSDIR
Does File Exist $WINSYSDIR$\mfc100.dll (get result into variable VC10_X86)
Check File Version $WINSYSDIR$\mfc100.dll into Variable VC10_X86
if Variable VC10_X86 Equals TRUE
  GoTo Label: End Test VC10_X86
end
Comment: Check for the MFC 10.0 DLL file in the side by side directory
Get Common Folder Location System->Windows Directory into WINDIR
Find All Files in path $WINDIR$\WinSxS\mfc100.dll (include subfolders), write result into variable VC10_X86
label: Parse VC10_X86
Parse String $VC10_X86$ into Variables VC10PART_X86 and VC10_X86 (Split at first occurrence of pattern)
Replace " with  in variable VC10PART_X86
Check File Version $VC10PART_X86$ into Variable VC10PART_X86
if Variable VC10PART_X86 Equals TRUE
  Set Variable VC10_X86 to TRUE
  GoTo Label: End Test VC10_X86
end
if Variable VC10_X86 not Equals 
  GoTo Label: Parse VC10_X86
else
  Set Variable VC10_X86 to FALSE
end
label: End Test VC10_X86
if Variable VC10_X86 Equals FALSE
  Set Variable PREREQ to TRUE
  Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft Visual C++ Runtime 10.0 (includes ATL and MFC)
end
 
